package cn.tedu.pojo;/**
 * @Author 金帮嘉诚 @Date 2021-07-15 星期四 18:57
 */
/*本类用于测试*/

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Arrays;
import java.util.Date;

/**
 * 知识点
 * <p>
 * Model层 用来封装数据
 * 类里的属性名 和 页面name属性的值 必须相同 否则不会封装值
 */
public class Student {
    //    id 姓名 年龄 性别 爱好 学历 入学日期
    private String user;
    private Integer age;
    private Integer sex;
    private String[] hobby;
    private Integer edu;
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date inTime;


    @Override
    public String toString() {
        return "Student{" +
                "user='" + user + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", hobby=" + Arrays.toString(hobby) +
                ", edu=" + edu +
                ", inTime=" + inTime +
                '}';
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Integer getEdu() {
        return edu;
    }

    public void setEdu(Integer edu) {
        this.edu = edu;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }
}
